const mongoose = require('./db')
const Schema = mongoose.Schema
const EmailCodeSchema = new Schema({
    code: {
        type: String,
        required: true
    },
    email: {
        type: String,
        required: true
    },
    tsp: {
        type: Date,
        required: true,
        default: Date.now
    }
})
module.exports = EmailCode = mongoose.model('email_code', EmailCodeSchema)
